/**
 * 清空本地存储和vuex里面数据
 *
 * @param store vuex里面的数据
 */
import { local, session } from "@/utils/local";
export function clearAll(store: any) {
  try {
    store?.commit("clearAll");
    local?.clear();
    session?.clear();
  } catch (err) {
    console.error(err);
  } finally {
  }
}
